package questionsObjects;

import java.util.List;
import java.util.Iterator;
import java.util.ArrayList;

/**
 * Created with IntelliJ IDEA.
 * User: xpk
 * Date: 11/30/13
 * Time: 3:26 PM
 * To change this template use File | Settings | File Templates.
 */
public class QuestionHistories implements Iterable<QuestionHistory> {
    private List<QuestionHistory> listOfQuestionHistories;

    public QuestionHistories() {
        listOfQuestionHistories = new ArrayList<QuestionHistory>();
    }

    public Iterator<QuestionHistory> iterator() {
        return listOfQuestionHistories.iterator();
    }

    public void push(QuestionHistory questionHistory) {
        listOfQuestionHistories.add(questionHistory);
    }

}
